Added missing header.
Removed abuse of inline functions used accross multiple files (Clang doesn't likes it).