fixed bug to properlyl link libav libraries