Fixed autoconf build of Perl wrapper on OSX