had an epiphany earlier i kept having problems with static linking because i merged the GNU C runtime with the SEH library instead of merging the latter with pthread