Fixing compilation errors
Merge pull request #680 from bhariharan/unstable

Fixing compilation errors