Cygnal

I finally managed to get Cygnal to compile with --pedantic --ansi and fixed some bugs.