Enable compiler support for `require-extension`

Added a special case to enable support for `require-extension`, by storing `(current-environment)` to a compile-time variable, and by extracting it during processing of `(load filename env)`.