fix type IDs for use on 64 bit systems as well