Added GL_LIBS and LIBM in demo LDFLAGS