fix path problems with native extensions