more direct import
#1106: workaround for osx weak symbol problem

This compiles and correctly throws exceptions on osx
I need to test this when snopt is available on osx