compiles now on mac os 10 mavricks

Ignore-this: 7c71843543fdf8a683bcedc6f433aba8

Apple gone and f*cked the gcc toolchain, ripped it out and replaced it with clang.
Goody, now I have to support more compilers and quirks if I want Macness.
So I got it to compile using clang instead of gcc on mac. Fortunately clang c++11
support is similar to gcc

darcs-hash:20131112051112-c21fe-63784756bff02acc9d449f18bdc9f922db8f367a
renamed "quit" session with "close"

Ignore-this: 7a38bca0650587aeb69325d480a24e21

Mac does not like quit in multiple menus...

darcs-hash:20131112051456-c21fe-5035fc21b317b8e0460f3827b506768237d09835
fixed some small bugs and got rid of some warnings

Ignore-this: 8e32f6d5fb2b19b4b522fb0e1bc0d754

darcs-hash:20131112051551-c21fe-cb9ab0fbb9614a79fcf4eb7c8bb60d13011ba4d5