Removed 'inline' keywords so that the code compiles under the latest OS ...

...X version. Also changed cast to avoid warnings with latest compiler.

As an alternative compile the original code with: -std=gnu89.