[pkg] don't crash if g++ is not in $PATH [applied]