Add fix to makefile and add html5mode