gyp: avoid duplicate optimization flags, move from -Os to -O3 on OS X
avoid deleting test/tmp folder
clean up test/tmp but leave placeholder.txt