small fixes so that command-line espgridd builds on OS X