Fix cross build

This is a pull request related to the issue described in http://stackoverflow.com/questions/23317326/trying-to-cross-compile-a-project-to-scala-2-11-fails-with-error-while-loading