Make rsa.c a bit more portable