Fixed issues that caused segfaults on Android. getprotobyname in posix/driver.c and convert in JNIMessage.java