gdbserver: use CT_TARGET_CFLAGS and CT_TARGET_LDFLAGS

.. and set them in build.sh for darwin when !copy_sdk.