make sure the library install location (lib | lib64) is correct
Merge pull request #210 from reneme/unify_libdir

Unify the detection of the library install location