Fixed warnings on Linux