Add -w flags to fix compile errors