Initial VS2013 support

Patched up the VS2013 implementation that was there, tested to make sure it works and attempted to build up using the generated VS2013 project. Hopefully I have done this pull request correctly this time...