Added include of sdk.h before "#ifndef CB_PRECOMP block" and moved local include after block.
Removed incorrect include of wx/wxprec.h and use of #pragma hdrstop from CB API header xtra_res.h.
Removed include of sdk.h from CB core header; removed CB_PRECOMP guard and reordered headers. Added prep.h include.