Add -rdynamic
Added very basic atomic and sync functions