fixed include order for bsd, added const to quit str on win