For upstream

I'm trying to get AQ32Puls compiled on Gentoo Linux, hope these changes help others as well