Fix a dependency issue when building the SDK