Added check on startup, log any NIF loading errors.
Removed 'inline' from some C files, as that gave problems with the OS X compiler.
Fixes for compiling on OS X.
Also log an error when the NIF load didn't work.

Merge branch 'osx'