Cleanup static linking, fix MinGW GLEW linking