Now the windows code works, winegcc is a charm :P