If you don't end the include file with a line return, whatever comes immediately after the #include statement is added to the end of the text in the included file. If it isn't a blank line, then it is very likely to cause an error.
If you have two #include lines with no space and the second starts with anything other than a blank line or comment, that will cause strange things to happen.
This bit me in the butt for a couple of days.
All AppGameKit code files should end with a blank line for safety.
Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master