Remove warnings. Move windows specific code.