Add stdbool support for msvc compilers.
inline is not an available keyword in C for MSVC.

For MSVC, inline is only available in C++, not C.
In C we can use __inline (or __forceinline) instead.
Fix: declare variable at top of function.
Fix various warnings.
Merge pull request #24 from bsmiles32/msvc_fixes

Msvc fixes