[hibernate-dev] Build improvements