Fix compile error for non-Windows