private InputStream locateResource(String name) {
		name +=  getExtension();
		String file="";
		if( isOSX()) {
			file="/native/osx/" + name;
		}else if( isWindows()) {
			if( is64Bit()){
				file="/native/windows/x86_64/" + name;
			}else {
				file="/native/windows/x86_32/" + name;
			}
		}else if( isLinux()) {
			if( isARM()) {
				file = "/native/linux/ARM/" + name;
			}else {
				if( is64Bit()) {
					file="/native/linux/x86_64/" + name;
				}else {
					file="/native/linux/x86_32/" + name;
				}
			}
		}else{
			System.err.println("Can't load native file: "+name+" for os arch: "+ getOsArch());
			return null;
		}
		//System.out.println("Loading "+file);
		return getClass().getResourceAsStream(file);
	}