fix osxcli and linuxcli build targets