wrap with linux compile switch, to fix win32 build