freerds: reduce dependency on os_calls.c