cleanup, added LDSHARED flags