Fixed export directive for Optimus workaround.
Merge remote-tracking branch 'upstream/master' into travis-osx