move all inline #defines to the begin of their headers