core/msg: revert part of #1285

use m->sender_pid instead of sched_active_pid again
undoes the optimization intended by #1285
fixes uint/int warning
core/msg: set m->sender_pid before it is used

fixes `msg_send_to_self` condition
SQUASHME: do it right
make: move exported make vars to one place
make: don't use export on example makefiles
Merge pull request #1109 from Kijewski/make-exports

make: no "unfriedly" `exports` in the application's Makefile
Merge pull request #1387 from LudwigOrtmann/msg_fixup

core/msg: clean up after #1285