Make available to partial-trust code.
Build fixes.