Added clang support, improved perl