fix compilation errors

Link: https://github.com/sebhtml/ray/issues/212
Signed-off-by: Sébastien Boisvert <sebastien.boisvert.3@ulaval.ca>