Fix some reflection warnings
Bind activity var only in debug builds when :def is provided
Use compiler option to skip certain logs in release