fix build on s390

This fixes building on s390x. It still fails to pass the test but this might be a different issue.