make sure we use a C compiler to build libc. fixes #937, #938