Compile error fix for Win