Fix compilation issues on Windows with Window Position Loader