tools: sdcc: fix order of linking with libm