Adapt build process