Amended for VS2010 on Win7x64 targeting .NET v2

To compile successfully and without warnings :)