fix build when e2 header files are not available