move compiler specifics to defines
make all functions defines to stub functions for disabled logger