Move include under the declaration.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Make scope in functions definitions more explicit.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>