Fixes for BYOND 500
More fixes, this time compiling properly in 499.
PHAYZUN