added missing dup function prototypes to header