makefiles: osx, fix version detection + default target