buffer: inline caused linkage issues
src: remove code for fast buffer constructor
buffer: fix reference to smalloc