Added check-syntax target

Added a check-syntax target for both C and C++ files so the make file
can be used with flymake.