Removed unnecessary resource copy.
Added necessary link options in Linux systems.
Make it easier to use STL classes.