fix htons and sigsetjmp api tests