Try to use glib instead posix.Can not remove the rest.