run shims through cpp when linking