You can probably do `--with-cxx` as well.  (The NLopt API is still C-callable, but this will require the C++ standard library to be linked in; however, I believe Julia is already linking this in order to call LLVM.)    This gives access to the StoGO optimizer.