Adding check-syntax entry to the Makefile.

This enables on the fly compilation for c++ code.