Fixed linux compile issues
Fixed warnings