libc.a must be linked after other libs, or symbols in those libs will not be resolved