Fix some issues with hschooks.c, and hopefully clear up (or at least document) the mess regarding which versions of Rts.h and RtsFlags.h are included.