Fix enumeration on OS X.