fixed forward declaration, removed --export-all-symbols on posix