nlopt: updated to version 2.4 and added c++11 option

I modified the formula so that the url now points to version 2.4
released November 2, 2013. In addition, I added the option to build
using C++11 mode.