Play 2.4 compatibility

added required adjustments to make the plugin play 2.4 ready.