Fix compiling large ESP scripts