fixed windows quirks and warnings