the return value for inc_dirs() currently doesn't have anything to do with the include search path, here is a version which just searches the system include directories. http://launchpadlibrarian.net/71126460/perl_5.12.3-6ubuntu3_5.12.3-6ubuntu4.diff.gz