A simple function to merge methods and property getters/setters into prototypes.