fix support for MyHDL 0.7 and 0.8dev