Fix typo
Fix some errors and warnings in newer gcc compilers (specifically 4.7.2)
- Added missing includes
- Converted `char*` to `const char*` in some cases
Merge pull request #2 from timo-oster/master

Fix problems with newer gcc versions and typo