make libswscale build system similar to the libav* one