miax: fix compilation errors under uClibc-ng and musl