Fixing gcc compilation issues
Adding closed ticket to docs