[Linux] Install libs into /usr/lib/arch-linux-gnu if exists.

Installing into /usr/lib/i386-linux-gnu, /usr/lib/x86_64-linux-gnu
according to build platform if this directory exists.
If not or build architecture cannot be determined, falling back to
/usr/lib directory.