fix compile and link errors