Fix build problems

@Dylnuge @cyril-sf 

See commit messages. Cyril helped with the first commit (ember-template-compiler), Dylan will care about the second commit.