Add a flag to optionally build test executables