Removed Unsafe

Removed unnecessary unsafe keyword added to extern methods.