add ifdefs to make service/instance.c compile on non-linux systems