[platform][realview-pb] fix the GIC code to work with more recent versions of qemu

Seems that recent versions actually check on the PRIMASK register
which was being left zeroed before.

Also wasnt using SETENABLE/CLRENABLE registers properly.
[project][realview-pb-test] add lib/debugcommands
[platform][armemu] make armemu compile for an arm1136