Turned out it is linked to /usr/local/bin/indi_dsi_ccd and I think that was an older build that I had. So when building from 3rdparty it never used the new binary.
I deleted all the indi binaries in usr/local/bin and then tried again to run indi_dsi_ccd and it worked!