Add gitignore, fix RTE tests for Mac environments.