cleanup: removing refs to globals from libosd

Signed-off-by: Roald J. van Loon <roaldvanloon@gmail.com>