Fix for linking in MS VS and CodeBlocks.

It should fix linking in MS VS and CodeBlocks IDE.