some fixes on the middleend
Merge branch 'dev' of https://github.com/mickael-menu/picc into dev