Fix PrefixMode not being exported which caused runtime link errors.

This fixes (at least part) of the problem reported by @Niichan.