patch from upstream hg following
Created attachment 192456 [details, diff] gcc 4.4 patch
Removed -Werror from the build, so it build now cleanly. Reopen if you see malfunctions related to this point. Thanks