Removing debug logging; patching up libdir paths.