Fix #927: Use a macro to automatically depend on right artifact

I'd rather have language imports at the top of the file.