compiles without errors (but with quite a few warnings) on VC10 and VC11
added a cmake file for convenience
fixed compile errors on VC10 and VC11