fix compile option for Debian and Mac