System abstraction: Add cpu/arch init and minor fixes

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>