Make some minor fixes to get openlibrary gem to work