Do not give warnings about using POSIX functions.
Removed return statement from void functions.
Fix signed/unsigned issue. This fixes a potential bug where the offset might have overflown, since a negation of an unsigned value was attempted.
Added missing include, needed by sqrt.
Fixed some signed/unsigned warnings.
Added cast to float.
Merge pull request #406 from perroe/fix_windows_warnings

Fix windows warnings