Fix build #187 for IE8 and IE9