fixes waypoints dependency when DEBUG_STATIC is set.
Merge pull request #1111 from cspanring/fix-waypoints

fixes waypoints dependency when DEBUG_STATIC is set.