Broken with libinotify-kqueue:
1) Not detect changes in subfolders with libinotify-kqueue.
2) With more sync job mega-cmd-server crashes:
Core was generated by `mega-cmd-server'.
Program terminated with signal SIGABRT, Aborted.
#0  0x0000794fcb17eeea in _lwp_kill () from /usr/lib/libc.so.12
[Current thread is 1 (process 24573)]
(gdb) bt
#0  0x0000794fcb17eeea in _lwp_kill () from /usr/lib/libc.so.12
#1  0x0000794fcb1846e0 in abort () from /usr/lib/libc.so.12
#2  0x0000794fcbefd165 in __gnu_cxx::__verbose_terminate_handler() [clone .cold] () from /usr/lib/libstdc++.so.9
#3  0x0000794fcbef2e2d in __cxxabiv1::__terminate(void (*)()) () from /usr/lib/libstdc++.so.9
#4  0x0000794fcbef2e6f in std::terminate() () from /usr/lib/libstdc++.so.9
#5  0x0000794fcbef2dd0 in __cxa_throw () from /usr/lib/libstdc++.so.9
#6  0x0000794fcbefac8e in std::__throw_system_error(int) () from /usr/lib/libstdc++.so.9
#7  0x00000001ff81984d in std::mutex::lock (this=0x794fd24b7220) at /usr/include/g++/bits/std_mutex.h:104
#8  std::lock_guard<std::mutex>::lock_guard (__m=..., this=<synthetic pointer>)
    at /usr/include/g++/bits/std_mutex.h:159
#9  mega::PosixWaiter::wait (this=0x794fd24b7180)
    at /usr/pkgsrc/wip/megacmd/work/MEGAcmd-2.1.1_Linux/sdk/src/posix/waiter.cpp:150
#10 0x00000001ff608d67 in mega::MegaApiImpl::loop (this=this@entry=0x794fd1dec000)
    at /usr/pkgsrc/wip/megacmd/work/MEGAcmd-2.1.1_Linux/sdk/src/megaapi_impl.cpp:7782
#11 0x00000001ff609534 in mega::MegaApiImpl::threadEntryPoint (param=0x794fd1dec000)
    at /usr/pkgsrc/wip/megacmd/work/MEGAcmd-2.1.1_Linux/sdk/src/megaapi_impl.cpp:6710
#12 0x0000794fcbeaf44c in execute_native_thread_routine () from /usr/lib/libstdc++.so.9
#13 0x0000794fcac0c89f in pthread.create_tramp () from /usr/lib/libpthread.so.1
#14 0x0000794fcb0930e0 in ?? () from /usr/lib/libc.so.12
#15 0x0000000000200000 in ?? ()
#16 0x0000000000000000 in ?? ()

Workaround:
1) periodic scan instead of filesystem notification
