Modify to also work on linux systems.
Modify to also work on linux systems.
Clean up spot counter C library calls. This old way was causing segfaults on linux.
Clean up focus lock C library calls. Needs testing.