Created system call wrappers.c (and sbbswrap.h) and moved target platform-specific macros and code there.