Merge pull request #1 from jpauli/54_compatibility

5.4 compatibility
Added compatible OB API macros
Merge pull request #2 from jpauli/54_compat_fix

Added compatible OB API macros
Fixed compiler warns
Merge pull request #3 from jpauli/fix_compiler_warnings

Fixed compiler warns