Visual studio fixes
MSVC warning fixes
Macro naming consistency.
Make RLUTIL_INLINE macro overridable.
Makefile targets should depend on the header.
Use inline for all functions.

They wouldn't be usable from multiple files otherwise as they have
definitions in the header.

Compiler will determine itself wether it will actually do inlining.