Linux build fixes for testnet.