More warning clean ups (NULL to 0 on int, sprintf flags, typedef on enum)