fixed shared lib extension portability