Ported defined? fixes from Rubinius.