build: Port meson-make-symlink script to Python
requested to merge lantw/malcontent:wip/lantw/build-Port-meson-make-symlink-script-to-Python into master
Instead of using non-portable features of GNU ln command, such as -T and --relative, use Python os.path.relpath function to handle it. This fixes installation failure on FreeBSD.