Add cfg for version based conditional compilation