make agent and main executable