Allow callers to pass custom messages to gzdie().

Use __attribute__ annotations to quiet compiler warnings.