musl libc fixes

This makes deadbeef build on alpine linux (musl libc based)