adding a #ifdef for win32 + macos, so Rob has code that works