Build subsurface_jni for building on android

For building on android subsurface downloader, we would need only the core
libraries of subsurface. All the unnecessary stuff is hence removed for
android_jni build.

Signed-off-by: Venkatesh Shukla <venkatesh.shukla.eee11@iitbhu.ac.in>
Pass void *devparam rather than char *name

This would enable passing of both int file descriptor on android as well as path
to tty on posix and win32.

Signed-off-by: Venkatesh Shukla <venkatesh.shukla.eee11@iitbhu.ac.in>
No pw_gecos on android

replace with pw_name

Signed-off-by: Venkatesh Shukla <venkatesh.shukla.eee11@iitbhu.ac.in>
added divecomputer_android for subsurface_jni

When compiling for subsurface_jni, use divecomputer_android.[ch] files. All the
relevant functions of divecomputer.c are implemented here.

Signed-off-by: Venkatesh Shukla <venkatesh.shukla.eee11@iitbhu.ac.in>
getline definition for android

getline definition is not present in android bionic libraries. linux.c requires
this definition. Hence, add the definitions for building android_jni.
The getline file is taken from http://goo.gl/hm5ldd.

Signed-off-by: Venkatesh Shukla <venkatesh.shukla.eee11@iitbhu.ac.in>
gettext,c for android_jni

For a beginning, translations are not incorporated on android. gettext.c
implements trGettext for non Qt android_jni build.

Signed-off-by: Venkatesh Shukla <venkatesh.shukla.eee11@iitbhu.ac.in>
androidhelper.c implementing remaining functions

The functions giving undefined references are implemented here.

Signed-off-by: Venkatesh Shukla <venkatesh.shukla.eee11@iitbhu.ac.in>