fixed all remaining build warnings on Windows