avr,msp430: more fixes to startup code

Signed-off-by: Andrew 'Necromant' Andrianov <andrew@ncrmnt.org>