Fixing compilation errors for linux.