Build system tweaks.
Don't use ugly ifdef in glsym.c.
More build fixups.