lib: Use stddef.h and stdbool.h instead of own definitions for a bunch of stuff