Fixes for semaphores on *nix.
Never use mktemp. Use mkstemp instead.
Fix a clang warning in plPythonPack.