Ensure that headers compile correctly regardless of include order.
There were some missing headers like <stddef.h> for `NULL`, <wayland-util.h> for `wl_link` and <stdbool.h> for `true`/`false`. Also this commit fixes that `labwc.h` and `ime.h` included each other.