makefile fixes, stack member cleanup, missing include
unhandled switch case
cleanup