add jni .so to makefile

Signed-off-by: Mattias Andrée <maandree@operamail.com>
fix jni warnings

Signed-off-by: Mattias Andrée <maandree@operamail.com>