added -XSafe to build process