diff --git a/moose-core/CMakeLists.txt b/moose-core/CMakeLists.txt
index 450a785eb20247f222ba024e5faca901fe540e36..1948958bec32f8bb981ed91d9c751e45252ba473 100644
--- a/moose-core/CMakeLists.txt
+++ b/moose-core/CMakeLists.txt
@@ -159,6 +159,8 @@ set_target_properties(libmoose PROPERTIES PREFIX "")
 
 ## Variable to collect all static libraries.
 set(STATIC_LIBRARIES "" )
+# Collect all shared libraries here.
+set(SYSTEM_SHARED_LIBS ${LibXML2_LIBRARIES})
 
 if(WITH_GSL)
     find_package(GSL 1.16)
@@ -262,8 +264,6 @@ if(WITH_MPI)
     endif()
 endif(WITH_MPI)
 
-# These are always shared libraries.
-set(SYSTEM_SHARED_LIBS ${LibXML2_LIBRARIES})
 if(WITH_BOOST)
     list(APPEND SYSTEM_SHARED_LIBS ${LAPACK_LIBRARIES})
     list(APPEND SYSTEM_SHARED_LIBS ${Boost_LIBRARIES})
diff --git a/moose-core/VERSION b/moose-core/VERSION
index 50e47c89cafc3ec95774b3110a3dba45256d0b24..800a76275f15c77c76a87df29c46bcae05377b48 100644
--- a/moose-core/VERSION
+++ b/moose-core/VERSION
@@ -1 +1 @@
-3.1.1
\ No newline at end of file
+3.1.1-47-gf27beb9
\ No newline at end of file