Cleaning compiler warnings