Fixed all compiler warnings