Fixes and IDE project for Visual Studio 2013