Added protection for loading native libraries multiple times