Fixed warning type qualifiers ignored on function return type.
Fixed warning "unused variable".
Fixed warning for not initialized variable.
Merge pull request #130 from TomFischer/FixLinuxWarnings

Small pull request to fix warnings appearing when compiling with gcc 4.8.