clean after configure when building with native libs

See http://erlang.org/pipermail/erlang-questions/2014-April/078460.html