Added include guards for third-party headers
Put ext include guards inside main include guard.