check lib/lib64 directories when building extensions