Fixes for PR214. Use the SHLIBEXT variable instead of hardcoding .so into