Fix warnings

Fixed all warnings in code for linux build