Reorganize the C API headers to improve build times.