fix work_mem for linux