build: remove duplicated codes in wscript_build.py for libmpv