main.cpp is now UNIX-compatible