build fixes for ckan