Fix the build error for execv function