MSVC 2010 project files + needed fixes

All fixes needed to build the project in MSVC 2010
Ideally the whole build system should be migrated to CMake, or some other cross-platform tool.
Paths to external libraries are hardcoded for now.