fixes for gem builds