reset errno to zero on entry to the application's main function. This fixes