Merge pull request #12 from jameinel/win32-project

Some updates to make the code compatible with VC 9 (2008)