Fix comodification exception in sendTiles

Signed-off-by: Ross Allan <rallanpcl@gmail.com>
Interrupt TcpWriterThread, catch more compiler errors, make prepatcher smarter when handling package -> public.

Signed-off-by: Ross Allan <rallanpcl@gmail.com>