This is from the Avogadro bug tracker: http://sourceforge.net/tracker/index.php?func=detail&aid=1968307&group_id=165310&atid=835077
In particular, standard C headers should use the C++-style header... e.g.
etc.