Don't lose the this reference for compilerHost methods.

Fixes #1545