Some small fixes, and switched from 'volatile' to memory fences for glinject.