tmpnam is dangerous, better use mkstemp; revert libssh2_prefix