small apple cmake/compilation fix