Cmake prebuild system against 0.3.x-cmake

Resent to cmake branch as requested!