Move include file to a function

Signed-off-by: Marc Delisle <marc@infomarc.info>