add workaround for missing intrinsic from Cray C compiler
workaround Cray compiler warnings for optional arguments
workaround mis-implemented __sync_lock_release with Cray C
Merge branch 'cray'