Do not load yasnippet in noninteractive usage
Fix compiler warnings in yasnippet config
Fix macroexpansion errors