Added a get_libdir call and fail if we don't have a valid LIBDIR when using debug.