Fix build.
Add an option to disable runtime range checks.