Move build files and fix Unix build
Fix Windows build for Visual Studio 2012