Support MKD_* flags
Merge pull request #4 from tokuhirom/feature/flags

Support MKD_* flags