NULL declaration is missing on Ubuntu