add ack mode for darwin os
add cmake mode