os.*,Startup.s:Some more semaphore_t related changes