fix incompatible implicit declaration of built-in function ‘exit’