support for darwin

Signed-off-by: Grarak <williye97@gmail.com>