linux fixes
fix rendering and file reading for linux