Fix IE8 linker issues

Fixes #296 and #294