it worked after adding the lines in windows.h as 'yorisimo' said.