Better handling of System.loadLibrary errors.