fix gcc flags when building a package for arm. Fixing reporting when the
libgtest-dev package is detected.