add heapdumps from OOM crash orientechnologies/orientdb
#3159
fix several build issues