Fixed error message for out of range writes.
Fixed default value for OnServerCommandAttempt.
Changed to XP-compatible runtimes.