Fix for Darwin builds