Lemmie fix those for you
Link against IOKit
Can't forget CoreFoundation
Merge pull request #2 from stqism/patch-7

Fixes global autoaway on OS X