use erlang:nif_error in NIF stubs
future-proof erts version regex in rebar.config