add support for flymake syntax check
add check-syntax target to .PHONY
use test cflags in syntax check to allow both main and test code to parse
add segv signal handler to print backtraces