Fixed cross-platform bug in Exception.c