Correctly handle enable-shared