Build fix

Non-ASCII characters replaced in PPUThread.h
Some cleanup (little bugs fixed)