cmap member is os specific, so remove initializing cmap code from common.h
rewrite freebsd.h
remove cmap_length_t, cmap_color_t
add init_cmap()