8051: Fix STC IAP library to compile with newer sdcc

Signed-off-by: Andrew 'Necromant' Andrianov <andrew@ncrmnt.org>
earlycon: Allow magic packet count to be specified in kconfig

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