Plug customizable Clock implementation into Elector. Some compilation fixes for cygwin.