Use int instead of char with getopt for ARM compatibility.