change headers order
finished conversion to win32. Now it compiles.