Removed all hacked  inline functions, changed C standard to C90 when using GCC