adding extern protection and restrict keyword handling to stinger_core. Fixed #9