some compile fixes for libc