Fixing some argument order issues; fixing creation of CLContext on Mac OS X with GLContext sharing.