add global error_message variable to avoid segfaults in replace_printf_handler().  Thanks, John Priller!