more fixes in posix wrapper
more fixes in posix wrapper

frostwire/frostwire-jlibtorrent,aldenml/frostwire-jlibtorrent,gubatron/frostwire-jlibtorrent,frostwire/frostwire-jlibtorrent,gubatron/frostwire-jlibtorrent,aldenml/frostwire-jlibtorrent,gubatron/frostwire-jlibtorrent,frostwire/frostwire-jlibtorrent,aldenml/frostwire-jlibtorrent