[WMF] fix memory leak in DOMDocument
[WMF] do not build with additional debug symbols
[WMF] Fix the behaviour of the hhvm restart mechanism