leveldb permission fix, rpcnet detect windows