Core: mysql connection now will have 60 sec for wait_timeout.
Also added directive output_buffering = 4096; into php.ini to prevent disabling buffering for some php-cgi and php-cli builds of web-servers.