Changed perl paths again, this time to <prefix>/<libdir>/perl5 and few improvements
Merge branch 'cmake-improvements'