Small fixes for compat with win

The fixes are mostly on pro files, and deals with dlls.