[#1827] Fix Play 1.3 starting in precompiled mode

The problem is with Hibernate - it seems not to use Play's classloader and fails with ClassNotFoundException for entity classes.

For some reason, it works in non-precompiled mode (maybe it sets Thread.contextClassloader then?)

Anyway, the fix is simple - just call buildEntityManagerFactory() after we have redefined Hibernate's classloader.