Make a few cross-platform adjustments (borrowed from alShaders)