added code to thread.c so we can hook into thread creation via debugging events, fixed issue in libcore CMakeList that would break CLion's CMake parser, added automatic selection of OS and ARCH in vm CMakeList for CLion