build: fix "unknown cpu architecture" error
based on this commit: ec1ac589d49081286164246fbaaba0012ae7ecac