Added initial Darwin implementation, a linux wrapper