fix clang c99 warnings and goofs