make things compile under windows again, there's still some ugly ifdefs
I'd like to get rid of