add compat library for Opal

Addition of a compat library to close gaps in Opal.