varius style fixes, removal of static and global and ftw.h