fixed win32 defines

almost the same as:
http://sourceforge.net/p/poco/patches/113/
see here for reference:
http://msdn.microsoft.com/en-us/library/e9b52ceh.aspx