Fix build for #-relocatable-heap and fix printf format