A Mac OS X commandline utility writtern poorly in C++/C to get acquainted with OS X Xcode