Add C linkage for tests/system.h