fix compile error and strip debug symbols