added missing PFD_ flags, enum type to int