Fixing compilation errors for linux port.