Fixed a bug building on OSX when passing a value of LIBDIR to configure.py on
the command line.