glstate: Avoid inlining so much code.

MacOSX compilation times in release mode with clang went from 10min to
1hr.  Hopefully this will help bring them to sane figures.