Fix compiling (on Mac OS at least...)

and various changes (allowing toggling trails, random colours, more random location...)