compiler: Fixed __declspec compiling issue on Linux; ide: Fixed crash on null workspace