[c] Fix cross-compilation for register command This is a hotfix and should be pushed against v0.0.2 See merge request !38