Apply tpunix' PGD fix from #998
Set default load address to 0x88004000 according to tpunix
Set _CRT_SECURE_NO_WARNINGS