Support compilation with musl-gcc
Minor fixes