Fixed all linker errors, should now be buildable via VS2013 express