Fixed subproject linking flags

closes #102