Improved native library loader to prefer the correct architecture, if it is mentioned in the file name.