Revert "Hack #3"

This reverts commit 9eb659f6af83cce37385b38b156d9b6fc0a83e87.
Fix C99 compatibility.

swscanf_s and friends are not available in
C99, and are only optional in C11 (Annex K).