trinity: Fix the build on OS X

Closes #374