Add preprocessor directives so it could compile with older kernels
which don't have SEEK_DATA/SEEK_HOLE defined.

Signed-off-by: Li Dongyang <dongyang.li@anu.edu.au>