cast to void * to get compiled with g++ on mint 14

this is not the best solution but it works for me