Fixed warnings, errors building with clang.
Fixed mseega.c
Changed C version to gnu99.
Fixed new warnings from gnu99 update.