alignment on different platforms.
Added some replacements for newlib's stdout. Added missing startup code. Some minor fixes.