esniper: fix build on darwin