Fixed a crash on Windows at least; changed magic address length numbers to #defines