C++ console application on Mac OS X