fixed linux build + remove warnings