Task #512. Removed extern's and moved the needed things to threads.c in demo_lpc_threading