Rename API import and export macros to lib specific names to avoid redefinition warnings