Fix creation of library target directory.