Fix compilation and execution issues.