fixes building of multiple archs