added linux patches and build scripts for linux