Some fixes for linux.
Update.