Move libcheck and libgd checks further down so that the toolkit's cmake file can set MinGW variables.
Whitespace changes.
Import signals toolkit as the first toolkit.