Allow detection in systems where libraries are installed in lib64 or lib32 instead of 'lib'