I suggest going further and just using static linking. It removes so much pain and may improve result performance and decrease program size.