Fixed argument type in function definition.

Mismatching argument type in header file caused compiling error on Mac OS X.
Corrected printf formatting.

Wrong formatting specifiers were causing compiler warnings.
Corrected printf formatting.
Added correct delete command for unix systems.
Merge pull request #1 from Tiiffi/fixes

Corrections to make it compile on Mac OS X.