Apparently it still needs to be exported, but only declspec(deprecated) does not work.
Reviewed-by: Marcus D. Hanwell <marcus.hanwell@kitware.com>