Fixed build errors when converting colors