Fix includes in curl_tls_workarounds.cpp

raise_notice() wasn't declared in this file, so include runtime_error.h.
This caused further problems with ATTRIBUTE_PRINTF not being defined
yet, so include some more stuff.
Fix assertion when target==analyze

Option::OutputHHBC should always be true.
Fix StringBuffer::resize()

capacity doesnt include the terminating null, so len is
allowed to grow to capacity (not capacity - 1).