Made SquirrelChat more gcc friendly

Instead of using _Generic we now use P99_GENERIC, this is because gcc's
C11 support is incomplete and does not include _Generic.
In addition, some warnings only appearing on gcc have been
fixed/silenced, along with some errorneous syntax that only caused
issues with gcc