Fixed a test issue where net45 methods were used in net40 profile
Merge pull request #790 from akoeplinger/fixtests

Fixed a test issue where net45 methods were used in net40 profile
Define WIN32_LEAN_AND_MEAN before including windows.h.