fixed linker command to work more generally