ruby: strip out some unused defines