Fix NativeScript compilation