Fixed all gcc warnings