How to support cross-compilation in plugins

Next one up: Python!