include headers and declare private methods static
fix iflib compile