Fix gcc crashes in OSL