Factorize files for multiple os/arch