Nativelib - Fix clang compilation issues