added configure script 

uses pkg-config to check for existing library and library version
if needed, downloads and patches NLopt tarball from mit.edu as before and builds static library