Problems compiling after changes for valid.h