C++ console application for OS X