Try -undefined dynamic_lookup when linking shared library on OS X