Fix NativeScript compilation
Merge pull request #582 from Icenium/totev/fix-ns

Fix NativeScript compilation