For anybody else, I resolved the issue by including these windows lib files:
opengl32.lib user32.lib gdi32.lib advapi32.lib windowscoreheadless.lib nanosrv.lib
I did this by brute force - added all the libraries and removed them one by one until I found the ones needed.