Fix compile issues with Buildroot and embedded platform