Split types.c into {monitor,desktop,history}.c