Fix "_invalid_parameter_noinfo_noreturn" link error

By ensuring that "undef" of _DEBUG macro is not done before system
includes, it fixes the issue.

This commit is based on what has been within VTK.
See https://github.com/Kitware/VTK/commit/81d4a72c1195437403f1772559c9c28978818f03

See #9

Thanks @Neosettler for testing the patch.

Reported-by: Neosettler