build: apply -foptimize-sincos patch in build