fix for xc16 vs c30 compiler
builds for bp v3/xc16. is likely incorrect for bpv4