Update gempack; fix build errors