fix a few inproper decalare
fix linux compile error