Changes made in heartbeat to run in ubuntu

Changes made in heartbeat to run in ubuntu