Merge pull request #1877 from hendrikmuhs/windows-GetObject-conflict-#1418

add a workaround for GetObject macro defined by windows.h