Convert pixie into a library so that GUI programs can be written using it.
Change type of size variables to size_t to be able to have large values.