makes daemon() and other uclibc functions that use fork() work on pthread applications. fixes #54, #73.