Compiles on windows.

Does not work right.