Fix inconsistent line endings :(
Fix some errors and warnings when compiling with Clang
Merge pull request #446 from zrax/clang_fixes

Fix some errors and warnings when compiling with Clang
Use std::min and std::max
Complete the previous commit by also removing the inline min and max
functions defined in HeadSpin.h without breaking (3ds)Max compilation
Use std::swap
There is no benefit to the hsFopen macro
Safer type-punning
Use standard (f)abs functions
Remove some additional usless / unused junk
Move <algorithm> header out of HeadSpin.h