linux: fixes to write full library

Signed-off-by: Wang Xingchao <xingchao.wang@linux.intel.com>