Makes the code compile under 510.
Created by: PJB3005
Note: because I couldn't be bothered to add a shitton of #if directives this'll also make it so the code NEEDS 510.
Also I need to make sure I didn't break anything.
OH GOD GIT WHAT ARE YOU SMOKING