add --enable-gl support, and put the flags/libs in the appropriate makefiles