Revert "Horrible hack to make CMake always rebuild metadata.cpp"

This reverts commit 73295457d976bbcd78b1b2a2e46ee580154c928c.