Fix Mac compiler warnings