Fixed configure/compile of dogleg for osx