Fixed some build warnings for C99
Be more pedantic about the build environment