Fixed building with autotools and added missing header