include missing headers
add missing forward declaration
silence warning 'unused parameter'
fix wrong return type
Merge pull request #4 from mehlis/fix-warnings

Fix warnings