use BUILT_SOURCES
add "public" because this is needed outside libmagic (in file)
More fixes