Change complex dot to use cblas to avoid problem with complex return type

This should solve the problems discovered in #5283