Fix building on *BSD (still requires gmake on bash unfortunately).