maint - updated to support build on OSX with brew