fix enet on freebsd
fix rpgeffect.cpp on freebsd/gcc 4.2.1
only act on the topmost window under the cursor