Fixed compiler warnings

Fixed all current compiler warnings