Improvements to heap example
Fixed section on dynamic libraries