Fix the split build mechanism with debug builds.