fix for window build autodetection