Add win mmap code
Add flush file buffer. Built native libraries