Use the POST_COST_VIRTUAL flag when exchange commodities

Fixes #999