Add Compat module for support v0.3 and v0.4
Use convert instead of bits type constructors

Fix compatibility with v0.3