Resolve memory leaks and a build error

This patches resolves two memory leaks that occur when a call in _evhtp_request_parser_header_key fails as well as when the function returns. The second patch resolves a build error caused by the missing declaration of SIGTERM. For a more detailed description please refer to the single commit messages.