Temporary fix for handling our typemap for the perl api with newer perl.