Removed old functions and replaced them with calls to builtin/provided newer functions. Requires NSIS 2.42 or at least a System.dll plugin with the "Call" function compiled in. Part of a fix for bug 327.