Add print function for darwin