Allow a constructor function to be extended