Answering my own question here: had to compile GLFW myself, then compile using gcc instead of gcc -x c++, THEN add -lgdi32 to the compile instruction. This has solved the issue for me on on two separate machines. Thanks to @drescherjm, @Alan Birtles, and @Brecht Sanders for their help resolving the issue.