made the buildLibraries.rb more user friendly