Fixing first batch of gcc compilation and linker problems
Changing apply_continue to return bool (as apply does)