C99 compatibility fixes for gnupg 1
Include <stdlib.h> for the exit function. This avoids a failing
GNUPG_CHECK_IPC check in case the compiler no longer supports implicit
function declarations.
Explicitly declare the return type of main as int. This too avoids
failures with future compilers.