Fix compiler errors for linux