added check for 64-bit linux when loading libraries