libc: link to libc and libm