Fixed compilation on OS X


------hector--------
Status on 17:26, September-24-2013
Last build status: SUCCESS 
[job status](https://jenkins.braincorporation.net/job/robustus-opencv-nvcc/1/)

[Merge master into this branch](https://hector.herokuapp.com/UTirnkNOWSMB8rACJRQSNUGEnDJ6tBS2HLmwS7ha/merge_master?repo=robustus&pull_req=5)