Fix compilation of stack and locals.