Added extra warnings, moved -std=c99 to CMAKE_C_FLAGS.
Fixed a crash if no Tox identities exist.
Fixed identity initialization.