Fixed Debug/Release settings; Improved error messages