Fixed inheritWith to accept an object when __proto__ is available