GNU/Linux compatibility fixes.