Factor out chflags.h