Add __unused to some variables in exec_* functions in order to build with gcc48.