Improved boost usage on Windows.

Changed boost on Windows to use generated include files, and refactored CMakeLists.txt for less platform-specific code.