OSX support

This patch adds support for OSX. Note that it uses the restricted task_for_pid() system call, so it will return an error unless you are running as root or querying usage info for your own process.