According to doc, dofile() raises an error when parsing failed due to syntax errors. Fixes #2775
Also fix a startup error caused by s_security.cpp
Due to compatibility concerns, this is temporarily disabled.