3.8: add RS232 cape support

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
3.8: fix segfaults on boot when compiled with gcc 4.8

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>