Cleaned up the makefiles and ignore lists.
The image viewer was leaking open file descriptors while loading (hit 4096 open fd limit).