Improved build files.

The C library files are only built once from now on.