The argument type for the RemoveMagic WHMTG function is listed "unknown". (here)
To get it to work, one would need change the argument type to "integer" then recompile.
the whmtg compiler code is merged with the mod selector code in a way that doesn't want to compile with vs2008, which is why I don't have time right now to make the change and re-upload it for you.
I've started a rewrite of the whmtg compiler a half-dozen times and never finished it.