Fix warnings in core and common
Merge pull request #120 from lioncash/core-common

Fix warnings in core and common