Misc fixes (as discussed online)

 - Fetch rebar using curl
 - Fix memory free error after an iconv error
 - Allow character sets for iconv open to be binaries
 - Make close a dummy call, as it is not defined in the nif C code
 - Link the iconv library into the .so