Update thread config macro, add openssl headers to libsaml build.