Fix for tests / examples on Mac