[build] Improve darwin build flags to enable gdb debugging

compile parrot_old static. some ar implementations cannot even find
object files with the same basename when debugging (darwin).
use this for debugging with gdb.
keep -undefined dynamic_lookup only for dynamically loaded bundles.
honor cmdline flags for --ld and --link.

See [GH #1096]