Last couple of hours went to a debug adventure that led me to an implicit cast of a return value due to an implicit declaration of a C function due to an #include missing a #define. Nearly went mad in the process.