Update erlang.mk and Makefile.sfmt

* Based on the latest NIF-supported version of erlang.mk