Fix load error (#175)
Fix load error (#175)

* Load NIFs dynamically

* Revert "Load NIFs dynamically"
This change didn't work

This reverts commit a9becdace9567c628260401f05791483fa24f383.

* Fixed double load issue

Unit tests (and other things) were causing rustler modules to be
loaded twice. Purging the module before building seems to fix the
problem reliably.

Fixes #123

hansihe/Rustler