Merge pull request #172 from mvala/master

Fix conversion to char *.
Removed -Wno-unused and compilation fixes