Fix mif file output
- write 32-bit words
- write proper DEPTH value
- use clang++ to compile
- write little-endian format