Attempt to make compillable for windows.