Fixes naming conflict with windows.h

Also fixes a small warning about an unused variable.