Update erlang.mk and Makefile.sfmt for NIF machine type detection

* Add NIF machine type detection code to erlang.mk
* Remove NIF machine type definition code from Makefile.sfmt