Add conditional compiles to resolve v0.11+ changes.