Minor changes to make minetest runnable from xcode

Tested on OSX Yosemite with xcode6-beta