Remove unused Pointer instance creation.
Change wrong method signature for nn_setsockopt native method.
Remove unnecesary throws statements with RuntimeException.