pass extra compile args from setup.py and set compiler env

there are duplicate arguments here and in CMakeLists.txt.in