thirdparty build changes for 10/12bit support