Doc build fix for Mac

Fix for #1428 via @shunter