I've managed to compile the program and launch it on OSX, so i guess "Write once, compile anywhere" works. Too bad that OSes are too different, so some cross-platform style should be followed while writing the code. thanks, dmitry