Re-organize C sources and build process