sm: fix build hopefully, more to follow

Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
ft proto: fun with layouts

Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>