Fix compile and link errors