Add dist subdirectory to .gitignore dist files
Remove unused wx headers from stfmath.cpp
Move wx-dependent functions from stfmath.h to stf.h