build exec.c for test environment