Fixing native-dynlink, and some others

Closes #1878