Fix libcommon link issues with debug programs

Signed-off-by: Adam Crume <adamcrume@gmail.com>
Merge pull request #2186 from adamcrume/wip-libcommon

Fix libcommon link issues with debug programs