Fixes for Chrome 38

Signed-off-by: Valérian Saliou <valerian@valeriansaliou.name>