Changed the order of a couple of libraries in CMakeLists

I'm hoping this will fix the 'undefined symbol' erro on the Mac build

Refs #4884