Fixing issue with compiling on latest mac OSes as discussed in pull request #1346