cleaned up compiler warnings; Windows build fixes