[PATCH] Added compatibility check for different dc-api versions