link examples with g++ instead gcc in the makefile