leveldb port to windows taken from https://bitbucket.org/robertvazan/leveldb-windows/src