Windoze cross compile fixes