Reorganized headers into more sensible order
Port of some architecture specific definitions from pstack source