add support for directoryperdb, noprealloc and smallfiles flags