changing return code of closeSession
restore DEBUG flag for Debug-builds and fix all compiler warnings
build a shared lib with only selected "userland" symbols visible
require a recent cmake version
fix a travis bug
simplify alloc, add statuscode as enum