patches for linux support