Small script to determine completeness of NIF API

(currently at 71/108 API functions)
Fix wrong declarations

(now down to 35 missing NIF API functions)