Fixing GCC errors in context creation.