Bug 892201: replace SPS signal handler completion busy loop with POSIX semaphore. r=benwa

--HG--
extra : rebase_source : 48bfcc1a352ae600dd1294d5b5e122ad0c58a745
Bug 892861 - Remove useless -D flags 'IMPL_THEBES,_IMPL_NS_GFX,...'. r=glandium