Apple SMC API in C