[PATCH] Only build test programs with make check