Issues with linux build using inline functions. Will find workaround later