similar fix for the missing defs on Windows