Wrote a working header for compilation on windows systems