Updates inherit method to use Object.create when available, and fallback to an older method when not.