Fixed subproject linking flags

closes #102
Merge pull request #103 from maxpow4h/master

Fixed linker for subproject