fix build with musl libc

closes #52