fix memory over-write by allocating langopts memory for the sentinel element