Added more MUSL Directrive

Adding support for threads package as well as other graphic packages
OSX Support: Setting up MKTEMP environment variable

*) Adding check for MKTEMP environment variable for menuconfig to be
able to be run on OSX