Fix compile errors since SVN revision 1717474 for unthreaded perl Thanks to Klaus S. Madsen <ksm@jobindex.dk> for the patch.