libtasks: fixed build errors