[build] use cross compiler cpp for manipulating ld scripts