main/kbd: fix build with musl and upgrade to 2.0.2

fixes #2977