You may have to set some environment flags manually in order to properly compile your code on SmartOS right now. The easiest way is to add this fragment to your project'spackage.json
:
"env": {
"CXX": "/opt/local/bin/g++ -m64",
"CPPFLAGS": "-I/opt/local/include",
"LD_OPTIONS": "-L/opt/local/lib -lsocket -lnsl",
"PYTHON": "/opt/local/bin/python2.7"
},