Guard calls to allow cross-compilation