Fixed pthread-related Linux problem caused by missing/misplaced define.
Fixed uninitialized variable.
Fixed warnings caused by different signedness of function parameters.
Fixed warning caused by multi-line comment.
Merge pull request #89 from nitsch/fix-warnings

Fixed warnings