Honor lib64 libdir path

Some systems set libdir as /lib64, thus we need to handle it properly.

CMake 3.0 provides GNUInstallDir module, but since that feature is too new I just did a trivial hack here.