These files are taken directly from Nagios 3.2.0 with a minimal patch that fixes one compilation error on g++.