simpe cmake support, still doesn't work under linux