beret: Fix build on darwin