Refactor code to compile on mac

There were a few problems in regards to inline, so removed the inline
declarations. Also fixed uninitialized varables to avoid undefined
behaviour.
Add check for NaN (not a number) to float_epsilon_cmp