Added perl support to compile