definitions for solaris and irix

and fixed redefinition warnings
makefiles now define the OS flag corresponding to their name
moved OpenGL_log to fg namespace