libcubex added for OSX