Style fixes

Still need to rename some files to use lower-case names.
Made the tests source files less error prone

This is done by explicitly including the source files
in the CMakeLists file in tests.

Also added a fix for RapidJSON for OS X.