fixed build issues with Visual Studio 2008
Merge branch 'master' of https://github.com/chrisDwarner/npruntimeSampleCode