set main return value type explicitly in configure.ac

otherwise configure will fail when using stronger warning flags.