Add languages support: scala, ruby, go, haskell

Also updates the compile options according to Codeforces' settings[1].

[1]: http://codeforces.com/blog/entry/4088