elevator.c: fix build errors