Detect the architecture at runtime and use the correct native libraries directory.