Use BUILT_SOURCES to fix some build dependencies problem