fix ctest for netbsd chflags