you cant fill in gaps with liquid nails
and anything surrounding a door or window should be treated as structural, even though it may not be, treat it as such and you will never have to worry about messing with it again....
i would go epoxy with any "glue" repair, i have seen liquid nails fail...