More fixes.
Merge https://github.com/Alegend45/IBM5150

Conflicts:
	src/misc.cpp