Moved static local variables to global scope due to SDCC bug that don't
initialize them properly otherwise.