Fix ganglia build on Fedora 17 and 18. #3515