Compile nlopt as a shared library